"""
文件流 | 模型
"""

from pydantic import BaseModel

from utils.validator_utils.pydantic_validator.field import (
    CharField,
    NormalField,
)


class FileStream(BaseModel):
    """ 文件流 | Model  """

    content: str | bytes = NormalField(..., title="文件流内容")
    filename: str = CharField(..., title="文件名")
    media_type: str = CharField(..., title="媒体类型")
